package cn.wolfcode.qo;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class queryObject {
    private int currentPage = 1;
    private int pageSize = 3;

    public int getBeginIndex() {
        return (currentPage-1)*pageSize;
    }
}
